import {
  request as fetch
} from '../utils/util'
const user = {
  upgrade(params) {
    return fetch('/small/user/upgrade', params) // 用户升级为服务商
  },
  withdraw(params) {
    return fetch('/small/withdraw/add', params) // 申请提现
  },
  runningLog(params) {
    return fetch('/small/user/runningLog', params)
  },
  detail(params) {
    return fetch('/small/user/findById', params, false, true)
  },
  recommend(params) {
    return fetch('/small/user/findChildren', params, false, true)
  },
  renew(params) {
    return fetch('/small/user/pay', params)
  },
  parCard(params) {
    return fetch('/small/user/findAllPrice', params)
  },
  balance(params) {
    return fetch('/small/withdraw/findByUserId', params)
  },
  changePhone(params) {
    return fetch('/small/user/updatePhone', params)
  },
  againPay(params) {
    return fetch('/small/user/payAgain', params)
  }
}

export default user
 